package org.jeecg.modules.platform.api;


import org.jeecg.common.api.vo.Result;
import org.jeecg.common.constant.ServiceNameConstants;
import org.jeecg.modules.platform.entity.CyPlatformOrganizationInfo;
import org.jeecg.modules.platform.fallback.PlatformOrganizationFallback;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(contextId = "SysPlatformOrgApi", value = ServiceNameConstants.SERVICE_SYSTEM, path = ServiceNameConstants.PATH_ORGANIZATION, fallback = PlatformOrganizationFallback.class)
@ConditionalOnMissingClass("org.jeecg.modules.platform.member.controller.CyPlatformOrganizationMemberPermissionController")
public interface PlatformOrganizationApi {

    @GetMapping("getById")
    public Result<CyPlatformOrganizationInfo> getById(@RequestParam String id);

}
